<?php

class Osml_Controller_Action_Upload extends Jnd_Controller_Action_Upload
{

    protected function getParams()
    {
        $request = $this->getRequest();
        $type = $request->getParam("type", null);
        if (is_null($type)) {
            switch ($request->getControllerName())
            {
                case "photos":
                    $type = "photos";
                break;
            }
        }
        
        $params['id'] = $request->getParam("id", 0);
        $params['type'] = $type;
        $params['categorie'] = $request->getParam("categorie", "galerie");
        $params['file'] = $request->getParam("file", null);
        $params['thumbnails'] = $request->getParam("thumbnails", null);
        return $params;
    }
}

